home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / libray / libimage / image.h < prev    next >
C/C++ Source or Header  |  1994-08-09  |  1KB  |  49 lines

  1. /*
  2.  * image.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Rod G. Bogart, Craig E. Kolb
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  *
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * image.h,v 4.1 1994/08/09 07:56:20 explorer Exp
  17.  *
  18.  * image.h,v
  19.  * Revision 4.1  1994/08/09  07:56:20  explorer
  20.  * Bump version to 4.1
  21.  *
  22.  * Revision 1.1.1.1  1994/08/08  04:52:03  explorer
  23.  * Initial import.  This is a prerelease of 4.0.6enh3, or 4.1 possibly.
  24.  *
  25.  * Revision 4.0  91/07/17  14:33:39  kolb
  26.  * Initial version.
  27.  * 
  28.  */
  29. #ifndef IMAGE_H
  30. #define IMAGE_H
  31.  
  32. /*
  33.  * Generic image object for texture map storage.
  34.  */
  35. typedef struct Image {
  36.     int    width, height,        /* Image size */
  37.         chan, has_alpha,    /* # of channels, has alpha info? */
  38.         totalchan,        /* # channels + any alpha channel */
  39.         chansize;        /* width * height */
  40.     unsigned char *data;        /* Image */
  41.     char    *filename;        /* Filename (identifier) */
  42.     struct Image *next;        /* Next image in list. */
  43. } Image;
  44.  
  45. Image    *ImageCreate(), *ImageFind(), *ImageRead();
  46. void    ImageIndex();
  47.  
  48. #endif /* IMAGE_H */
  49.